Figure 2.1

Along the course of the book, you will progressively be introduced to some of the options. For now, we will use the

startproject option to create a new project.

In Terminal, navigate to a location on your computer where you want to store your Django project e.g. Desktop.

Create a new folder ‘ todoapp ’ with:

Execute in Terminal

mkdir todoapp

‘ cd ’ to that folder:

Execute in Terminal

cd todoapp

In todoapp, run:

Analyze Code

python3 -m django startproject <project_name>

In our case, we want to name our project ‘ backend ’ . We run:

Execute in Terminal

python3 -m django startproject backend

A ‘ backend ’ folder will be created. We named the Django project backend because it serves as the backend of the

Django-React todo app stack. Later on, the React frontend will be contained in a frontend folder. The eventual

structure will look something like:

todoapp

→ backend

→ Django …

→ frontend

→ React …

In the next chapter, we will look inside the backend folder that Django has created for us and understand it better.